com.supermap.data

Class PrivateCloudLicenseManager

  • java.lang.Object
    • com.supermap.data.PrivateCloudLicenseManager


  • public class PrivateCloudLicenseManager
    extends java.lang.Object
    The private cloud license manager class.Used to manage the online license information for the current device.
    • Constructor Detail

      • PrivateCloudLicenseManager

        public PrivateCloudLicenseManager()
    • Method Detail

      • getInstance

        public static PrivateCloudLicenseManager getInstance()
        Gets the instance of the private license manager class.
        Returns:
        The instance of the private license manager class.
      • setServerUrl

        public void setServerUrl(java.lang.String url)
        Sets the private cloud server address
        Parameters:
        url - the private cloud server address
      • getServerUrl

        public java.lang.String getServerUrl()
        Gets the private cloud server address
        Returns:
        the private cloud server address
      • ApplyFormalLicense

        public boolean ApplyFormalLicense(int[] codeArray)
        Applies for a private cloud official license
        Parameters:
        codeArray - The applied module ID array
        Returns:
        Returns true unless all modules applied for licenses successfully. Otherwise, returns false
      • dispose

        public void dispose()
        Recycles resources
      • isModuleValid

        public boolean isModuleValid(int code)
        After activating a license, determines whether it is valid
        Parameters:
        code - license module id
        Returns:
        whether it is valid.
      • VerificationLicense

        public boolean VerificationLicense(java.lang.String licensecode,
                                           int[] codeArray)
        Verification license
        Parameter:
        licensecode -